package com.todod.model;

import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author dyl
 * @date 2022-09-05
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.catalog_detail")
public class CatalogDetail {

	/** 主键id */
	@TableId("cmd_id")
	private Long id;
	/** 分类id */
	@TableField("cmd_classify_id")
	private Long classifyId;
	/** 父Id */
	@TableField("cmd_parent_id")
	private Long parentId;
	/** 类型名称 */
	@TableField("cmd_type_name")
	private String typeName;
	/** 标识（M全部用户可见（管理员创建）：U公司可见（公司创建）） */
	@TableField("cmd_flag")
	private String flag;
	/** 层级路径 */
	@TableField("cmd_levels")
	private String levels;
	/** 状态 */
	@TableField("cmd_state")
	private String state;
	/** 排序号 */
	@TableField("cmd_sort_num")
	private Integer sortNum;
	/** 创建用户id */
	@TableField("cmd_createuser_id")
	private Long createuserId;
	/** 创建时间 */
	@TableField("cmd_createtime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createtimeTi;
	/** 修改用户名id */
	@TableField("cmd_modifyuser_id")
	private Long modifyuserId;
	/** 修改时间 */
	@TableField("cmd_modifytime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifytimeTi;

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private List<CatalogDetail> children;// 子文件夹及文件

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String parentName;// 上级目录名称

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String createuserName;// 上级目录名称

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String catalog01;// 上级目录名称

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String catalog02;// 上级目录名称

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String catalog03;// 上级目录名称

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(Long classifyId) {
		this.classifyId = classifyId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getLevels() {
		return levels;
	}

	public void setLevels(String levels) {
		this.levels = levels;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public Long getCreateuserId() {
		return createuserId;
	}

	public void setCreateuserId(Long createuserId) {
		this.createuserId = createuserId;
	}

	public LocalDateTime getCreatetimeTi() {
		return createtimeTi;
	}

	public void setCreatetimeTi(LocalDateTime createtimeTi) {
		this.createtimeTi = createtimeTi;
	}

	public Long getModifyuserId() {
		return modifyuserId;
	}

	public void setModifyuserId(Long modifyuserId) {
		this.modifyuserId = modifyuserId;
	}

	public LocalDateTime getModifytimeTi() {
		return modifytimeTi;
	}

	public void setModifytimeTi(LocalDateTime modifytimeTi) {
		this.modifytimeTi = modifytimeTi;
	}

	public List<CatalogDetail> getChildren() {
		return children;
	}

	public void setChildren(List<CatalogDetail> children) {
		this.children = children;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getCreateuserName() {
		return createuserName;
	}

	public void setCreateuserName(String createuserName) {
		this.createuserName = createuserName;
	}

	public String getCatalog01() {
		return catalog01;
	}

	public void setCatalog01(String catalog01) {
		this.catalog01 = catalog01;
	}

	public String getCatalog02() {
		return catalog02;
	}

	public void setCatalog02(String catalog02) {
		this.catalog02 = catalog02;
	}

	public String getCatalog03() {
		return catalog03;
	}

	public void setCatalog03(String catalog03) {
		this.catalog03 = catalog03;
	}

	@Override
	public String toString() {
		return "CatalogDetail [id=" + id + ", classifyId=" + classifyId + ", parentId=" + parentId + ", typeName="
				+ typeName + ", flag=" + flag + ", levels=" + levels + ", state=" + state + ", sortNum=" + sortNum
				+ ", createuserId=" + createuserId + ", createtimeTi=" + createtimeTi + ", modifyuserId=" + modifyuserId
				+ ", modifytimeTi=" + modifytimeTi + "]";
	}

}
